package com.yeban.bams.entity;

import com.yeban.bams.exception.LoanException;

/**
 * 贷款的接口
 */
public interface Loanable {

    /**
     * 贷款方法
     * @param money 贷款金额
     * @return  Account
     */
    Account requestLoan(double  money) throws LoanException;

    /**
     * 还贷方法
     * @param money 还贷金额
     * @return Account
     */
    Account payLoan(double  money) throws LoanException;
}
